import axios from "@/libs/api.request";

//心跳
export const getHeartBeatPagedList = data => {
  return axios.request({
    params: data,
    url: "/bss/heart/list",
    method: "get"
  });
};

//告警
export const getAlarmPagedList = data => {
  return axios.request({
    params: data,
    url: "/bss/alarm/list",
    method: "get"
  });
};

export const alarmCount = data => {
  return axios.request({
    params: data,
    url: "/bss/alarm/count",
    method: "get"
  });
};

export const dealAlarm = data => {
  return axios.request({
    data: data,
    url: "/bss/alarm/deal",
    method: "post",
    headerType: "json"
  });
};
export const alarmXY = data => {
  return axios.request({
    data: data,
    url: "/bss/alarm/xy",
    method: "post",
    headerType: "json"
  });
};
export const getAlarmListExcel = data => {
  return axios.request({
    params: data,
    url: "/bss/alarm/export",
    method: "get"
  });
};
//大屏监控
export const getShopLocation = () => {
  return axios.request({
    url: "/bss/monitor/loc",
    method: "get"
  });
};

//推送日志
export const getPushLogList = data => {
  return axios.request({
    params: data,
    url: "/bss/msglog/list",
    method: "get"
  });
};

// 实时大屏

export const getRealSum = () => {
  return axios.request({
    url: "/bss/home/sum",
    method: "post"
  });
};